﻿using System;

class CompareArrays
{
    static void Main()
    {
        Console.Write("Lenght of first array : ");
        int FirstArrayLenght = int.Parse(Console.ReadLine());
        Console.WriteLine("Insert {0} elements for your first array", FirstArrayLenght);
        int[] FirstArray = new int[FirstArrayLenght];
        for (int i = 0; i < FirstArray.Length; i++)
        {
            FirstArray[i] = int.Parse(Console.ReadLine());
        }
        Console.WriteLine("Lenght of Second array : ");
        int SecondArrayLenght = int.Parse(Console.ReadLine());
        int[] SecondArray = new int[SecondArrayLenght];
        for (int i = 0; i < SecondArray.Length; i++)
        {
            SecondArray[i] = int.Parse(Console.ReadLine());
        }
        bool SameArray = true;
        if (FirstArrayLenght != SecondArrayLenght)
        {
            SameArray = false;
        }
        else
        {
            for (int j = 0; j < FirstArray.Length; j++)
            {
                if (FirstArray[j] != SecondArray[j])
                {
                    SameArray = false;
                    break;
                }

            }
        }
        Console.WriteLine("Are equal first and second array? : {0}" , SameArray);

    }
}